package cn.doyo.spring.test.autowareannotation.bean;

import cn.duyo.spring.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author du
 */
@Component
public class UserDao {

    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "leo，重庆，解放碑");
        hashMap.put("10002", "doyo，成都，新川");
        hashMap.put("10003", "阿毛，深圳，福田");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }

}
